﻿
@{
    Layout = null;
}
@model BNS_Education.Model.topic
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>addExam</title>
    <script src="~/Scripts/jquery-1.10.2.min.js"></script>
    <script src="~/Content/utf8-net/ueditor.config.js"></script>
    <script src="~/Content/utf8-net/ueditor.all.js"></script>
    <link href="~/Content/utf8-net/themes/iframe.css" rel="stylesheet" />
    <script src="~/Content/utf8-net/lang/zh-cn/zh-cn.js"></script>
    <script src="~/Scripts/jquery-1.10.2.js"></script>

    <script>
        var editor = new baidu.editor.ui.Editor({

            UEDITOR_HOME_URL: '/Content/utf8-net/',//配置编辑器路径

            iframeCssUrl: '/Content/utf8-net/themes/iframe.css',//样式路径

            initialContent: '欢迎使用ueditor',//初始化编辑器内容

            autoHeightEnabled: true,//高度自动增长

            minFrameHeight: 500//最小高度

        });

        editor.render('editor');

       

        //题型
        function tx(i) {
         
            location.href = "/QuestionBank/addExam?id=" + i;
        }
        //难度
        function nd(n) {
            alert(n)
            location.href = "/QuestionBank/addExam1?nd=" + n;
        }

        //返回
        function fh()
        {
            location.href = "/QuestionBank/Index";
        }
    </script>
</head>
<body>
    接收分布式图
    @{ string prital = ViewBag.prital;}
    <div style="width:1000px;height:auto;background-color:#efd7d7">
        <div style="width:980px;height:30px;background-color:#ff0000;margin:0 auto;line-height:30px">
            <p style="font-size:20px">添加试题<span style="float:right"><input id="Button1" type="button" value="返回" onclick="fh()"/></span></p>
        </div>
        <hr style="color:#808080" />
        <div style="width:940px;height:auto;background-color:#ff6a00;margin:0 auto">
            @using (@Html.BeginForm("addExam1", "QuestionBank", FormMethod.Post))
            {              
                <div style="width:900px;height:35px;background-color:#b6ff00;margin:0 auto">
                    题型：                
                    <input name="Button2" type="button" value="单选题" onclick="tx(1)"/>&nbsp;&nbsp;
                    <input name="Button2" type="button" value="多选题" onclick="tx(2)"/>&nbsp;&nbsp;
                    <input name="Button2" type="button" value="不定选择题" onclick="tx(3)"/>&nbsp;&nbsp;
                    <input name="Button2" type="button" value="填空题" onclick="tx(4)"/>&nbsp;&nbsp;
                    <input name="Button2" type="button" value="判断题" onclick="tx(5)"/>&nbsp;&nbsp;
                    <input name="Button2" type="button" value="问答题" onclick="tx(6)"/>
                </div>
                <hr style="color:#808080" />
                <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                    题干：
                    @Html.TextArea("editor")
                </div>
                <hr style="color:#808080" />
                <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                    @*选项：*@                 
                    @Html.Partial(prital)                   
                </div>
                <hr style="color:#808080" />
                <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                    <p>
                        难度：
                        @Html.TextBox("nd")级(1--5级)                    
                        <span style="float:right; margin-right:100px">
                            默认分值：
                            @Html.TextBox("fz")分                          
                        </span>
                    </p>
                </div>
                <hr style="color:#808080" />
                <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto">
                    题目解析：
                    @Html.TextArea("jiexi")                   
                </div>
                <hr style="color:#808080" /><br />
                <div style="width:900px;height:auto;background-color:#b6ff00;margin:0 auto;text-align:center">
                    <input id="Submit1" type="submit" value="提交" style="width:100px;height:35px;border-radius:inherit"/>
                </div>
            }

        </div>

    </div>
</body>
</html>
